package integration.data.task.api.transformation.impl;

import integration.data.task.api.transformation.ComplexTransformer;
import integration.data.task.api.transformation.Transformer;
import io.github.bigbird0101.datatransfer.record.Record;

import java.util.Map;

public class ComplexTransformerProxy extends ComplexTransformer {

    private Transformer realTransformer;

    public ComplexTransformerProxy(Transformer transformer) {
        setTransformerName(transformer.getTransformerName());
        this.realTransformer = transformer;
    }


//    public Transformer getRealTransformer() {
//        return realTransformer;
//    }

    @Override
    public Record evaluate(Record record, Map<String, Object> paras) {
        return this.realTransformer.evaluate(record, paras);
    }
}
